﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace Nok_Air
{
    public class Wording
    {
        #region firstPage
        public FirstPageMenu fpm;

        private string titleEN = "Nok Air";
        private string menuEN = "Menu";
        private string airportEN = "Airport";
        private string checkInEN = "Check In";
        private string flightSchEN = "Flight Schedule";
        private string bookFlightEN = "Book Flight";
        private string viewBookingEN = "View Booking";
        private string exitEN = "Are you sure you want to exit?";

        private string titleTH = "นกแอร์";
        private string menuTH = "เมนู";
        private string airportTH = "สนามบิน";
        private string checkInTH = "เช็คอิน";
        private string flightSchTH = "ตารางเที่ยวบิน";
        private string bookFlightTH = "จองตั๋ว";
        private string viewBookingTH = "ดูตั๋วที่จอง";
        private string exitTH = "คุณต้องการออกจากโปรแกรมใช่หรือไม่";
        #endregion

        #region appBar
        public AppBar abar;

        private string nokAirEN = "Main menu";
        private string aboutEN = "About";
        private string languageEN = "Language";
        private string messageEN = "The Language was change." + Environment.NewLine + "Please restart application to take effect.";


        private string nokAirTH = "เมนูหลัก";
        private string aboutTH = "เกี่ยวกับ";
        private string languageTH = "ภาษา";
        private string messageTH = "เปลี่ยนภาษาเรียบร้อยแล้ว"+ Environment.NewLine +"กรุณารีสตาท์โปรแกรมเพื่อเริ่มใช้งานภาษาไทย";
       

        #endregion

        public Wording()
        {
            fpm = App.lang == "eng" ? new FirstPageMenu() { Title = titleEN, Menu = menuEN, Airport = airportEN, CheckIn = checkInEN, FlightSch = flightSchEN, BookFlight = bookFlightEN, ViewBooking = viewBookingEN, Exit = exitEN} : new FirstPageMenu() {Title = titleTH, Menu = menuTH, Airport = airportTH, CheckIn = checkInTH, FlightSch = flightSchTH, BookFlight = bookFlightTH, ViewBooking = viewBookingTH, Exit = exitTH};
            abar = App.lang == "eng" ? new AppBar() { NokAir = nokAirEN, About = aboutEN, Language = languageEN, Message = messageTH } : new AppBar() { NokAir = nokAirTH, About = aboutTH, Language = languageTH, Message = messageEN };
        }

    }
    public class FirstPageMenu
    {
        public string Title { get; set; }
        public string Menu { get; set; }
        public string Airport { get; set; }
        public string CheckIn { get; set; }
        public string FlightSch { get; set; }
        public string BookFlight { get; set; }
        public string ViewBooking { get; set; }
        public string Exit { get; set; }
    }
    public class AppBar
    {
        public string NokAir { get; set; }
        public string About { get; set; }
        public string Language { get; set; }
        public string Message { get; set; }

    }
}
